glib:type-name="OstreeRepoFinderAvahi"
glib:get-type="ostree_repo_finder_avahi_get_type"
glib:type-struct="RepoFinderAvahiClass">
- <source-position filename="ostree-repo-finder-avahi.h" line="47"/>
+ <source-position filename="ostree/src/libostree/ostree-repo-finder-avahi.h"
+ line="47"/>
<implements name="RepoFinder"/>
- <constructor name="new" c:identifier="ostree_repo_finder_avahi_new">
- <source-position filename="ostree-repo-finder-avahi.h" line="54"/>
+ <constructor name="new"
+ c:identifier="ostree_repo_finder_avahi_new"
+ version="2018.6">
+ <doc xml:space="preserve"
+ filename="ostree/src/libostree/ostree-repo-finder-avahi.c"
+ line="1360">Create a new #OstreeRepoFinderAvahi instance. It is intended that one such
+instance be created per process, and it be used to answer all resolution
+requests from #OstreeRepos.
+
+The calling code is responsible for ensuring that @context is iterated while
+the #OstreeRepoFinderAvahi is running (after ostree_repo_finder_avahi_start()
+is called). This may be done from any thread.
+
+If @context is %NULL, the current thread-default #GMainContext is used.</doc>
+ <source-position filename="ostree/src/libostree/ostree-repo-finder-avahi.h"
+ line="54"/>
<return-value transfer-ownership="full">
+ <doc xml:space="preserve"
+ filename="ostree/src/libostree/ostree-repo-finder-avahi.c"
+ line="1375">a new #OstreeRepoFinderAvahi</doc>
<type name="RepoFinderAvahi" c:type="OstreeRepoFinderAvahi*"/>
</return-value>
<parameters>
- <parameter name="context" transfer-ownership="none">
+ <parameter name="context"
+ transfer-ownership="none"
+ nullable="1"
+ allow-none="1">
+ <doc xml:space="preserve"
+ filename="ostree/src/libostree/ostree-repo-finder-avahi.c"
+ line="1362">a #GMainContext for processing Avahi
+ events in, or %NULL to use the current thread-default</doc>
<type name="GLib.MainContext" c:type="GMainContext*"/>
</parameter>
</parameters>
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use self::repo_finder::RepoFinderExt;
+#[cfg(any(feature = "v2018_6", feature = "dox"))]
mod repo_finder_avahi;
+#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use self::repo_finder_avahi::{RepoFinderAvahi, RepoFinderAvahiClass, NONE_REPO_FINDER_AVAHI};
+#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use self::repo_finder_avahi::RepoFinderAvahiExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use super::RepoFileExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use super::RepoFinderExt;
+ #[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use super::RepoFinderAvahiExt;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub use super::RepoFinderMountExt;
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
+#[cfg(any(feature = "v2018_6", feature = "dox"))]
use glib;
use glib::object::IsA;
use glib::translate::*;
}
impl RepoFinderAvahi {
- pub fn new(context: &glib::MainContext) -> RepoFinderAvahi {
+ #[cfg(any(feature = "v2018_6", feature = "dox"))]
+ pub fn new(context: Option<&glib::MainContext>) -> RepoFinderAvahi {
unsafe {
from_glib_full(ostree_sys::ostree_repo_finder_avahi_new(context.to_glib_none().0))
}
Generated by gir (https://github.com/gtk-rs/gir @ 60cbef05)
-from gir-files (https://github.com/gtk-rs/gir-files @ e51adaf)
+from gir-files (https://github.com/gtk-rs/gir-files @ 2495460+)
Generated by gir (https://github.com/gtk-rs/gir @ 60cbef05)
-from gir-files (https://github.com/gtk-rs/gir-files @ e51adaf)
+from gir-files (https://github.com/gtk-rs/gir-files @ 2495460+)
// OstreeRepoFinderAvahi
//=========================================================================
pub fn ostree_repo_finder_avahi_get_type() -> GType;
+ #[cfg(any(feature = "v2018_6", feature = "dox"))]
pub fn ostree_repo_finder_avahi_new(context: *mut glib::GMainContext) -> *mut OstreeRepoFinderAvahi;
#[cfg(any(feature = "v2018_6", feature = "dox"))]
pub fn ostree_repo_finder_avahi_start(self_: *mut OstreeRepoFinderAvahi, error: *mut *mut glib::GError);